#ifndef __bullet_H__
#define __bullet_H__
#include "cocos2d.h"
#include "Water.h"

using namespace cocos2d;
class Bullet :public CCSprite
{
public:
    CCPoint the;
    int dir;
	int speed;// = 6;
	int theid;
    
    void update(float dt);
    bool hitWall();
    void destroy(bool bomb);
    void firstShot(Wall* wall);
    bool hitBullet();
    bool hitTank();
	bool hitij(int i,int j);
    Bullet (float x,float y,int dir,int id,int speed);
};
#endif
